home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 12 / Cream of the Crop 12 (Part II) / Cream of the Crop 12 (Part II).iso / OS2 / V15N04.ZIP / WARPCA.ZIP / WCABSRC.ZIP / DROP_API.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-01-18  |  1.1 KB  |  36 lines

  1. #if !defined (_DROP_API_)
  2.     #define _DROP_API_
  3. // Prototypes for public Direct Manipulation functions.
  4. #ifdef __cplusplus
  5.     extern "C" {
  6. #endif
  7.  
  8.     typedef short int SHORT;
  9.     typedef short unsigned int USHORT;
  10.  
  11.     typedef struct _DRAGINFO     /* dinfo */
  12.     {
  13.         ULONG    cbDraginfo;               /* Size of DRAGINFO and DRAGITEMs*/
  14.         USHORT   cbDragitem;               /* size of DRAGITEM              */
  15.         USHORT   usOperation;              /* current drag operation        */
  16.         HWND     hwndSource;               /* window handle of source       */
  17.         SHORT    xDrop;                    /* x coordinate of drop position */
  18.         SHORT    yDrop;                    /* y coordinate of drop position */
  19.         USHORT   cditem;                   /* count of DRAGITEMs            */
  20.         USHORT   usReserved;               /* reserved for future use       */
  21.     } DRAGINFO;
  22.     typedef DRAGINFO *PDRAGINFO;
  23.  
  24.     typedef char *PSZ;
  25.  
  26.     MRESULT Drop            (HAB, HWND, PDRAGINFO, PSZ);
  27.     MRESULT DragLeave       (VOID);
  28.     MRESULT DragOver        (HAB, PDRAGINFO, PSZ);
  29.     MRESULT DropHelp        (HWND, PDRAGINFO);
  30.  
  31. #ifdef __cplusplus
  32.     }
  33. #endif
  34.  
  35. #endif
  36.